import { deleteRequest, getRequest, postRequest } from "@/utils";

class Service {
  page = (params: object) => getRequest("/quality-scheme/list", params);
  add = (params: object) => postRequest("/quality-scheme/add", params);
  remove = (ids: string[] | string) =>
    deleteRequest("/quality-scheme/{id}", ids);
  update = (params: object) => postRequest("/quality-scheme/update", params);
}
export const QualitySchemeService = new Service();
